package org.cable.shop.config;

/**
 * @author hsj
 * @date 2023/11/22 9:47
 */
public class WechatPayApi {

	/**
	 * 微信支付主机地址
	 */
	public static final String HOST = "https://api.mch.weixin.qq.com";


	/**
	 * Native下单
	 */
	public static final String NATIVE_ORDER = HOST+ "/v3/pay/transactions/native";



	/**
	 * Native订单状态查询, 根据商户订单号查询
	 */
	public static final String NATIVE_QUERY = HOST+ "/v3/pay/transactions/out-trade-no/%s?mchid=%s";


	/**
	 * 关闭订单接口
	 */
	public static final String NATIVE_CLOSE_ORDER = HOST+ "/v3/pay/transactions/out-trade-no/%s/close";



	/**
	 * 申请退款接口
	 */
	public static final String NATIVE_REFUND_ORDER = HOST+ "/v3/refund/domestic/refunds";


	/**
	 * 退款状态查询接口
	 */
	public static final String NATIVE_REFUND_QUERY = HOST+ "/v3/refund/domestic/refunds/%s";

}
